package com.price.util

import com.price.mmkv.MMKVOwner
import com.price.mmkv.mmkvBool
import com.price.mmkv.mmkvParcelable
import com.price.sample.bean.TestBean
import com.tencent.mmkv.MMKV

object MMKVRepository:MMKVOwner {
    private const val cryptKey = "My-Encrypt-Key"
    override val kv: MMKV = MMKV.mmkvWithID("My_share", MMKV.SINGLE_PROCESS_MODE, cryptKey)

    var isFirstLaunch by mmkvBool(default = true)
    var user by mmkvParcelable<TestBean>()
}